import numpy as np 
import matplotlib.pyplot as plt 

with open("../build/prob_mnn.bin", "rb") as fid:
    tmp = fid.read()

prob1 = np.frombuffer(tmp, dtype=np.single, count=-1)

prob2 = np.reshape(prob1, newshape=(-1, 2599))

print(prob2.shape)

plt.figure()
plt.plot(prob1)
plt.show()




# plt.figure()
# for i in range(100, 200,1):
#     plt.title(str(i))
#     plt.plot(prob2[i])
#     plt.pause(0.1)
#     plt.clf()
# plt.show()
